import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import {ProductInfoComponent} from "./product-info/product-info.component";
import {ProductEditComponent} from "./product-edit/product-edit.component";
import {ProductUsageComponent} from "./product-usage/product-usage.component";
import {ProductMineComponent} from "./product-mine/product-mine.component";

const routes: Routes = [{
  path: '',
  component: ProductInfoComponent,
  data: {
    keep: true
  }
}, {
  path: 'edit',
  component: ProductEditComponent
}, {
  path: 'mine',
  component: ProductMineComponent,
  data: {
    keep: true
  }
}, {
  path: 'mine/usage',
  component: ProductUsageComponent
}];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class ProductRoutingModule {
}
